package com.molyfun.parents.rest.bean;

import com.molyfun.parents.impl.IHorizontalTag;
import com.molyfun.parents.rest.BaseResponse;

import java.util.List;

/**
 * Created by william(liuchao.hit@gmail.com).
 * Date:10/31/16.
 */
public class ReportResultResponse extends BaseResponse {

    private ResultBeanList data;

    public ResultBeanList getData(){
        return data;
    }

    public static class ResultBeanList {

        private int offset;
        private int limit;
        private int total;
        private int size;
        private int pages;
        private int current;
        private boolean searchCount;
        private List<EvaluateListBean> records;
        private Object orderByField;
        private boolean asc;
        private int offsetCurrent;

        public int getOffset() {
            return offset;
        }

        public void setOffset(int offset) {
            this.offset = offset;
        }

        public int getLimit() {
            return limit;
        }

        public void setLimit(int limit) {
            this.limit = limit;
        }

        public int getTotal() {
            return total;
        }

        public void setTotal(int total) {
            this.total = total;
        }

        public int getSize() {
            return size;
        }

        public void setSize(int size) {
            this.size = size;
        }

        public int getPages() {
            return pages;
        }

        public void setPages(int pages) {
            this.pages = pages;
        }

        public int getCurrent() {
            return current;
        }

        public void setCurrent(int current) {
            this.current = current;
        }

        public boolean isSearchCount() {
            return searchCount;
        }

        public void setSearchCount(boolean searchCount) {
            this.searchCount = searchCount;
        }

        public List<EvaluateListBean> getRecords() {
            return records;
        }

        public void setRecords(List<EvaluateListBean> records) {
            this.records = records;
        }

        public Object getOrderByField() {
            return orderByField;
        }

        public void setOrderByField(Object orderByField) {
            this.orderByField = orderByField;
        }

        public boolean isAsc() {
            return asc;
        }

        public void setAsc(boolean asc) {
            this.asc = asc;
        }

        public int getOffsetCurrent() {
            return offsetCurrent;
        }

        public void setOffsetCurrent(int offsetCurrent) {
            this.offsetCurrent = offsetCurrent;
        }
    }

    public static class EvaluateListBean{
        private String datestr;
        private List<EvaluateResultBean> evaluatelist;

        public String getDatestr() {
            return datestr;
        }

        public void setDatestr(String datestr) {
            this.datestr = datestr;
        }

        public List<EvaluateResultBean> getEvaluatelist() {
            return evaluatelist;
        }

        public void setEvaluatelist(List<EvaluateResultBean> evaluatelist) {
            this.evaluatelist = evaluatelist;
        }
    }

    public static class EvaluateResultBean implements IHorizontalTag {

        /**
         * id : 4028b8815a6a4be1015a6a5f91450013
         * cate : 1
         * catename : PEP-3
         * evaluatedatetime : 1487779200000
         * evaluatedatetimeend : 1487843449000
         */

        private String id;
        private String cate;
        private String catename;
        private String type;
        private long evaluatedatetime;
        private long evaluatedatetimeend;

        public String getName(){
            return catename;//TimeUtils.getDateByTimeMillis(getEvaluatedatetime()) + "~" + TimeUtils.getDateByTimeMillis(getEvaluatedatetimeend());
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getCate() {
            return cate;
        }

        public void setCate(String cate) {
            this.cate = cate;
        }

        public String getCatename() {
            return catename;
        }

        public void setCatename(String catename) {
            this.catename = catename;
        }

        public long getEvaluatedatetime() {
            return evaluatedatetime;
        }

        public void setEvaluatedatetime(long evaluatedatetime) {
            this.evaluatedatetime = evaluatedatetime;
        }

        public long getEvaluatedatetimeend() {
            return evaluatedatetimeend;
        }

        public void setEvaluatedatetimeend(long evaluatedatetimeend) {
            this.evaluatedatetimeend = evaluatedatetimeend;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }
    }

}
